package com.demo.gulimall.cart.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 自定义线程可配置的参数
 * @author Chen Yuan
 * @create 2023-06-12  16:44
 */
@Data
@Component // 放入容器中
@ConfigurationProperties(prefix = "mall.thread")
public class ThreadPoolConfigProperties {

	private Integer coreSize;

	private Integer maxSize;

	private Integer keepAliveTime;
}
